package com.meicet.adapter.dialog

import android.content.Context
import android.view.View
import androidx.annotation.Keep
import androidx.viewbinding.ViewBinding
import com.lxj.xpopup.core.BottomPopupView
@Keep
abstract class DialogBottomBinding<T : ViewBinding>(context: Context) : BottomPopupView(context) {
    lateinit var binding: T
    override fun addInnerContent() {
        binding = initBinding(bottomPopupContainer)
        val param = binding.root.layoutParams as LayoutParams
        bottomPopupContainer.addView(binding.root, param)
    }

    abstract fun initBinding(rootView: View): T
}
